﻿<%@ Page Language="C#" MasterPageFile="~/Templates/Admin.master" AutoEventWireup="true" CodeFile="Default.aspx.cs" Inherits="Admin_EmailTemplates_Default" Title="Untitled Page" %>
<%@ Register Src="~/Controls/wucEmptyGridMessage.ascx" TagName="EmptyGridMessage" TagPrefix="wuc" %>
<%@ Register Assembly="Jalal.Library" Namespace="Jalal.Library.Web.Control" TagPrefix="ucc" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">
    <script src="<%= siteRoot %>Javascripts/Common/ApplicationCommon.js" type="text/javascript"></script>
</asp:Content>
<asp:Content ID="MiddleArea" ContentPlaceHolderID="MiddleArea" Runat="Server">
    <table width="100%" cellpadding="10" border="0" cellspacing="10" class="table_area">
        <tr>
            <td class="heading-text">Email Templates</td>
        </tr>
        <tr>
            <td>
                <ucc:ResponseMessage ID="uccResponse" runat="server"></ucc:ResponseMessage>
            </td>
        </tr>
        <tr>
            <td align="right">
                <asp:Button ID="btnDelete" runat="server" Text="Delete" 
                    OnClick="Delete_Click" CssClass="button" />
            </td>
        </tr>
        <tr>
            <td>
                <asp:GridView ID="grvEmailTemplates" runat="server" AutoGenerateColumns="false" 
                    OnRowDataBound="Grid_RowDataBound" HeaderStyle-Font-Bold="true" 
                    Width="100%" AlternatingRowStyle-BackColor="#F5F5F5" >
                    <Columns>
                        <asp:TemplateField>
                            <HeaderTemplate>
                                #
                            </HeaderTemplate>
                            <ItemStyle HorizontalAlign="Center" />
                            <ItemTemplate>
                                <asp:Label ID="lblId" runat="server" Text='<%# Eval("Id") %>'></asp:Label>
                            </ItemTemplate>
                        </asp:TemplateField>
                        <asp:BoundField DataField="MailTitle" SortExpression="MailTitle" HeaderText="Title" /> 
                        <asp:BoundField DataField="CreateDateTime" SortExpression="CreateDateTime" 
                            HeaderText="Created" ItemStyle-HorizontalAlign="Center" DataFormatString="{0:dd/MM/yyyy}" /> 
                        <asp:BoundField DataField="LastUpdateDateTime" SortExpression="LastUpdateDateTime" 
                            HeaderText="Last Updated" ItemStyle-HorizontalAlign="Center" DataFormatString="{0:dd/MM/yyyy}"/>
                        <asp:TemplateField>
                            <ItemStyle HorizontalAlign="Center" />
                            <ItemTemplate>
                                <asp:HyperLink ID="hlkEdit" runat="server" Text="Edit" Font-Bold="true"></asp:HyperLink>
                            </ItemTemplate>
                        </asp:TemplateField>
                        <asp:TemplateField>
                            <HeaderTemplate>
                                <asp:CheckBox ID="cbxSelectAll" runat="server" />
                            </HeaderTemplate>
                            <ItemStyle HorizontalAlign="Center" />
                            <ItemTemplate>
                                <asp:CheckBox ID="cbxSelect" runat="server" />
                            </ItemTemplate>
                        </asp:TemplateField>
                    </Columns>
                    <EmptyDataTemplate>
                        <wuc:EmptyGridMessage ID="EmptyGridMessage1" runat="server" MessageText="There is no poll question" />
                    </EmptyDataTemplate>
                </asp:GridView>
            </td>
        </tr>
    </table>
</asp:Content>

